//
//  WorkingRecordController.m
//  AppFrame
//
//  Created by GXJ on 2017/3/6.
//  Copyright © 2017年 GXJ. All rights reserved.
//

#import "WorkingRecordController.h"
#import "WorkingRecordCell.h"
#import "WBPopOverView.h"

@interface WorkingRecordController ()

@end

@implementation WorkingRecordController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"办事记录";
    self.view.backgroundColor = BackgroundColor;
    self.tableView.separatorStyle = NO;
    
    UIImage *image = [[UIImage imageNamed:@"筛选"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal ];
    UIBarButtonItem *rightbuttonItem = [[UIBarButtonItem alloc]initWithImage:image style:UIBarButtonItemStylePlain target:self action:@selector(rightFun)];
    self.navigationItem.rightBarButtonItem = rightbuttonItem;
}

- (void)rightFun {
    //CGPoint point = CGPointMake(KScreenWidth - 20.0, 65.0);//箭头点的位置
    //WBPopOverView *view = [[WBPopOverView alloc] initWithOrigin:point Width:176.0*m6Scale Height:190.* m6Scale Direction:WBArrowDirectionUp3];//初始化弹出视图的箭头顶点位置point，展示视图的宽度Width，高度Height，Direction以及展示的方向
    //view.delegate = self;
    //[view popView];
    [SVProgressHUD showInfoWithStatus:@"敬请期待"];

}

#pragma mark - WBPopOverViewDelegate
- (void)clickItemWithIndexPath:(NSIndexPath *)indexPath {
    if (indexPath.row == 1) {
        [SVProgressHUD showSuccessWithStatus:@"功能开发中"];
        
    }else {
        [SVProgressHUD showSuccessWithStatus:@"功能开发中"];
    }
}

#pragma mark - UITableView
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 3;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    WorkingRecordCell *cell = [WorkingRecordCell cellWithTableView:tableView];
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 420 * m6Scale;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}



@end
